home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 43
/
Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso
/
-serious-
/
programming
/
other
/
flexcat
/
lib
/
catcomp_h.sd
< prev
next >
Wrap
Text File
|
1999-06-14
|
2KB
|
154 lines
##stringtype C
##shortstrings
#ifndef %b_STRINGS_H
#define %b_STRINGS_H
/****************************************************************
This file was created automatically by `%fv'
from "%f0"
using CatComp.sd 1.1 (23.05.97)
Do NOT edit by hand!
****************************************************************/
#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif
#ifdef %b_BASIC_CODE
#undef %b_BASIC
#undef %b_CODE
#define %b_BASIC
#define %b_CODE
#endif
#ifdef %b_BASIC
#undef %b_ARRAY
#undef %b_BLOCK
#define %b_ARRAY
#define %b_BLOCK
#endif
#ifdef %b_ARRAY
#undef %b_NUMBERS
#undef %b_STRINGS
#define %b_NUMBERS
#define %b_STRINGS
#endif
#ifdef %b_BLOCK
#undef %b_STRINGS
#define %b_STRINGS
#endif
#ifdef %b_CODE
#include <proto/locale.h>
extern struct Library *LocaleBase;
#endif
#ifdef %b_NUMBERS
#define %i %d
#endif /* %b_NUMBERS */
/****************************************************************************/
#ifdef %b_STRINGS
#define %i_STR %s
#endif /* %b_STRINGS */
/****************************************************************************/
#ifdef %b_ARRAY
struct %b_ArrayType
{
LONG cca_ID;
STRPTR cca_Str;
};
static const struct %b_ArrayType %b_Array[] =
{
{ %i, (STRPTR)%i_STR },
};
#endif /* %b_ARRAY */
/****************************************************************************/
#ifdef %b_BLOCK
static const char %b_Block[] =
{
"%4a" "%2t"\n %i_STR "%z"
};
#endif /* %b_BLOCK */
/****************************************************************************/
struct %b_LocaleInfo
{
APTR li_LocaleBase;
APTR li_Catalog;
};
#ifdef %b_CODE
STRPTR Get%bString(struct %b_LocaleInfo *li, LONG stringNum)
{
LONG *l;
UWORD *w;
STRPTR builtIn;
l = (LONG *)%b_Block;
while (*l != stringNum)
{
w = (UWORD *)((ULONG)l + 4);
l = (LONG *)((ULONG)l + (ULONG)*w + 6);
}
builtIn = (STRPTR)((ULONG)l + 6);
//#define %b_XLocaleBase LocaleBase
//#define LocaleBase li->li_LocaleBase
if(LocaleBase && li)
return(GetCatalogStr(li->li_Catalog, stringNum, builtIn));
//#undef LocaleBase
//#define LocaleBase XLocaleBase
//#undef %b_XLocaleBase
return(builtIn);
}
#endif /* %b_CODE */
/****************************************************************************/
#endif /* %b_STRINGS_H */